package cn.tedu.erp.project.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class DeptUpdateDTO implements Serializable {
    @ApiModelProperty(value = "部门名称", required = true, example = "服务部")
    @NotNull(message = "修改部门失败,必须填写部门名称!")
    /*部门名称*/
    private String name;

    @ApiModelProperty(value = "部门序号", required = true, example = "66")
    @NotNull(message = "修改部门失败,必须填写序号!")
    /*部门序号*/
    private Long sort;

    @ApiModelProperty(value = "部门角色", required = true, example = "")
    /*部门角色*/
    private Long[] roleIds;

    @ApiModelProperty(value = "部门简介", required = true, example = "负责服务部的角色权限")
    @NotNull(message = "修改部门失败,必须填写部门简介!")
    /*部门简介*/
    private String description;

}
